package cn.credit.loan.dao.customer;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.credit.loan.entity.Customer;

/**
 * 客户基本信息Dao层---Mapper接口
 * @author LI
 *
 */
public interface CustomerMapper {
	
	/**
	 * 用户基本信息列表
	 * @param customer
	 * @return
	 */
	public List<Customer> getCustomerList(Customer customer)throws Exception;
	
	/**
	 * 根据客户id查询客户基本信息
	 * @param customer
	 * @return
	 */
	public Customer getCustomerListById(@Param("custId")Integer custId )throws Exception;
	
	
	/**
	 * 用户录入个人的基本信息
	 * @param customer
	 * @return
	 */
	public int addCustomer(Customer customer)throws Exception;
	
	/**
	 * 修改用户录入个人信息
	 * @return
	 * @throws Exception
	 */
	public int updateCustomer(Customer customer)throws Exception;
	/**
	 * 根据对象作条件查询个人基本信息
	 * @param customer
	 * @return
	 */
	public Customer getcustomer(Customer customer)throws Exception;
}
